package com.hxzy.service.system;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hxzy.dto.system.AdminLoginDTO;
import com.hxzy.dto.system.SysUserDTO;
import com.hxzy.entity.system.SysUser;
import com.hxzy.vo.AdminLoginVO;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * 角色表
 */
public interface SysUserService extends IService<SysUser> , UserDetailsService {
    /**
     * 后台用户登录
     * @param adminLoginDTO
     * @return
     */
    AdminLoginVO  login(AdminLoginDTO  adminLoginDTO);

    /**
     * 分页查询
     * @param sysUserDTO
     * @return
     */
    List<SysUser> search(SysUserDTO sysUserDTO);
}
